package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 游戏信息对象 games
 * 
 * @author ruoyi
 * @date 2025-01-13
 */
public class Games extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** | 游戏开始时间  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "| 游戏开始时间 ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 游戏得分       |  */
    @Excel(name = "游戏得分       | ")
    private Long score;

    /**  收集的金币数量 | */
    @Excel(name = " 收集的金币数量 |")
    private Long coinsCollected;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setCoinsCollected(Long coinsCollected) 
    {
        this.coinsCollected = coinsCollected;
    }

    public Long getCoinsCollected() 
    {
        return coinsCollected;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("startTime", getStartTime())
            .append("score", getScore())
            .append("coinsCollected", getCoinsCollected())
            .append("createTime", getCreateTime())
            .toString();
    }
}
